class AppUser {
   String? searchValue="";
   String? createBy="";
   String? createTime="";
   String? updateBy="";
   String? updateTime="";
   String? remark="";
   int userId=0;//用户id
   int channelId=0;//渠道id
   String? channelName="";//渠道name
   String? channelCode="";//渠道code
   String? phone="";
   String? authPhone="";
   String? code="";
   String? phoneMd5="";
   String? ip="";
   String? name="";
   String? cardId="";
   int state=0;
   int device=0;
   String? deviceId="";
   int vipState=0; //vip状态
   String? token="";
   int expireTime=0;
   int loginTime=0;
   String? phoneOriginal="";//真实手机号
   String?  vipExpireTime="";//vip过期时间
  AppUser(
      {
        this.searchValue="",
        this.createBy="",
        this.createTime="",
        this.updateBy="",
        this.updateTime="",
        this.remark="",
        this.userId=0,
        this.channelId=0,
        this.channelName="",
        this.channelCode="",
        this.phone="",
        this.authPhone="",
        this.code="",
        this.phoneMd5="",
        this.ip="",
        this.name="",
        this.cardId="",
        this.state=0,
        this.device=0,
        this.deviceId="",
        this.vipState=0,
        this.token="",
        this.expireTime=0,
        this.loginTime=0,
        this.phoneOriginal="",
        this.vipExpireTime=""
      });

  AppUser.fromJson(Map<String, dynamic> json) {
    searchValue = json['searchValue']??"";
    createBy = json['createBy']??"";
    createTime = json['createTime']??"";
    updateBy = json['updateBy']??"";
    updateTime = json['updateTime']??"";
    remark = json['remark']??"";
    userId = json['userId']??0;
    channelId = json['channelId']??0;
    channelName = json['channelName']??"";
    channelCode = json['channelCode']??"";
    phone = json['phone']??"";
    phone = json['authPhone']??"";
    code = json['code']??"";
    phoneMd5 = json['phoneMd5']??"";
    ip = json['ip']??"";
    name = json['name']??"";
    cardId = json['cardId']??"";
    state = json['state']??0;
    device = json['device']??0;
    deviceId = json['deviceId']??"";
    vipState = json['vipState']??0;
    token = json['token']??"";
    expireTime = json['expireTime']??0;
    loginTime = json['loginTime']??0;
    phoneOriginal = json['phoneOriginal']??"";
    vipExpireTime = json['vipExpireTime']??"";
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['searchValue'] = this.searchValue;
    data['createBy'] = this.createBy;
    data['createTime'] = this.createTime;
    data['updateBy'] = this.updateBy;
    data['updateTime'] = this.updateTime;
    data['remark'] = this.remark;
    data['userId'] = this.userId;
    data['channelId'] = this.channelId;
    data['channelName'] = this.channelName;
    data['channelCode'] = this.channelCode;
    data['phone'] = this.phone;
    data['authPhone'] = this.authPhone;
    data['code'] = this.code;
    data['phoneMd5'] = this.phoneMd5;
    data['ip'] = this.ip;
    data['name'] = this.name;
    data['cardId'] = this.cardId;
    data['state'] = this.state;
    data['device'] = this.device;
    data['deviceId'] = this.deviceId;
    data['vipState'] = this.vipState;
    data['token'] = this.token;
    data['expireTime'] = this.expireTime;
    data['loginTime'] = this.loginTime;
    data['phoneOriginal'] = this.phoneOriginal;
    data['vipExpireTime'] = this.vipExpireTime;
    return data;
  }
}